diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-09-28 15:13:55 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-09-28 15:13:55 +0100 |
| commit | 37623ba6964acf573e100903fbdd1453d69d2e26 (patch) | |
| tree | d7dd087153dc64cdf3f386b4897a3255d64db453 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | a637fcc83f642d5320608ea7fc20a93f3ec5ab86 (diff) | |
Add Patio code gen for struct field accesses
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 23 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..4ceff319 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,23 @@ +Compilation unit elements: + + +Locals: + * (val "tmp__id__0" int) + * (val "structValuePointer__0" data-ptr) + +Instructions: + +( + (int-to-data-ptr (local "structValuePointer__0") (local "b")) + ( + memory-load + (local "tmp__id__0") + pointer=(local "structValuePointer__0") + layout=(struct (int int int)) + offset=(1) + ) +) + +Temporary stack: + * tmp__id__0 + * a |
